package it.polimi.registration.business.security.boundary;

import it.polimi.registration.business.security.entity.Notification;

import java.security.Principal;

import javax.ejb.Stateless;
import javax.inject.Inject;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

@Stateless
public class NotificationManager {

    @PersistenceContext
    EntityManager em;
    
    @Inject
    Principal principal;  
    
    public void save(Notification n) {
    	em.persist(n);
    }
    
    public void merge(Notification n) {
    	em.merge(n);
    }
}
